<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/include.inc.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="/WEB-INF/views/layout/base.ref.jsp" %>
    <link rel="stylesheet" href="${ctx}/static/meeting/controls/subGrid/subgrid.css"/>
</head>
<body>
<div class="mtcontent">
    <div class="mtheader">
    </div>
    <div class="mtbody">
        <form method="post" id="pagerForm" action="${ctx}/customsearch/search?code=${code}">
            <div class="mtrow">
                <div class="mtcolall">
                    <c:forEach items="${listControl}" var="con">
                        <c:if test="${not empty con.controlName}">
                            <label class="mtlabel-auto marginleft">${con.controlName}：</label>
                            <c:choose>
                                <c:when test="${con.controlType == 0}">
                                    <input type="text" class="mtinput" name="${con.fieldControl}"
                                           value="${vo[con.fieldControl]}"/>
                                </c:when>
                                <c:when test="${con.controlType == 1}">
                                    <input type="text" class="mtinput" name="${con.fieldControl}"
                                           value="${vo[con.fieldControl]}"/>
                                </c:when>

                            </c:choose>
                        </c:if>
                    </c:forEach>
                    <c:if test="${fn:length(listControl) > 0}">
                        <a class="mtbtn search marginleft" href="#" onclick="queryClick('pagerForm')"><i
                                class="mtfa mt-search"></i><span>查询</span></a>
                    </c:if>
                </div>
            </div>
        </form>
        <div class="space-4"></div>
        <table id="grid">
        </table>
    </div>
</div>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $('#grid').bootstrapTable({
            striped: true,                      //是否显示行间隔色
            pagination: true,                   //是否显示分页（*）
            sortable: true,                     //是否启用排序
            clickToSelect: true,                //是否启用点击选中行
            height: $(window).height() - 200,  //固定高度
            columns: ${columns},
            data:${data}
        });
    });
</script>
